home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20010921-20020314
/
000129_spcecdt@deeptht.armory.com_Thu Nov 8 09:38:01 EST 2001.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
60 lines
Article: 12946 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!news-peer.gip.net!news.gsl.net!gip.net!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!gemini.tycho.net.POSTED!not-for-mail
Newsgroups: comp.unix.sco.misc,comp.protocols.kermit.misc
Subject: Re: OSR5 <sys/termio.h> (OSR5 modem signals)
References: <9s775v$ip0$1@newsmaster.cc.columbia.edu> <20011105193806.E13779@mammoth.ca.caldera.com> <9s9344$4n$1@newsmaster.cc.columbia.edu> <9sc7ku$81i$1@newsmaster.cc.columbia.edu>
Organization: The Armory
X-Newsreader: trn 4.0-test69 (20 September 1998)
From: spcecdt@deeptht.armory.com (John DuBois)
Date: 08 Nov 2001 04:11:23 GMT
Lines: 43
Message-ID: <3bea05eb$0$79559$8eec23a@newsreader.tycho.net>
NNTP-Posting-Host: 353e6fb4.newsreader.tycho.net
X-Trace: 1005192683 gemini.tycho.net 79559 spcecdt@192.122.209.42
X-Complaints-To: abuse@tycho.net
Xref: newsmaster.cc.columbia.edu comp.unix.sco.misc:140013 comp.protocols.kermit.misc:12946
In article <9sc7ku$81i$1@newsmaster.cc.columbia.edu>,
Frank da Cruz <fdc@watsun.cc.columbia.edu> wrote:
>If anybody has OSR5.0.5 code that drops DTR and then turns it back on
>that works (e.g. brings DTR back up after the pause and if RTS also went
>down, it comes back up too), I'd sure like to see it.
I think you'll just need to close the device, open it, & re-initialize it.
>However, TIOCMGET still seems problematic -- it reported that
>all modem signals (DTR, DSR, RTS, CTS, RI) were off when connected to a
>modem with a fully populated modem cable. Can anybody confirm or deny this?
Well, I can tell you than on a stock 5.0.6a system and using a standard (sio)
port, this code:
#define _SVID3
#include <sys/termio.h>
#include <stdio.h>
main()
{
int bits;
if (ioctl(0,TIOCMGET,&bits)) {
perror("TIOCMGET");
exit(1);
}
else {
printf("MGET %x CTS=%d DSR=%d RNG=%d CAR=%d\n", bits,
!!(bits & TIOCM_CTS), !!(bits & TIOCM_DSR), !!(bits & TIOCM_RNG),
!!(bits & TIOCM_CAR));
exit(0);
}
}
shows exactly what the lines are set to, for example:
# tiocmget < /dev/tty2a
MGET 120 CTS=1 DSR=1 RNG=0 CAR=0
John
--
John DuBois spcecdt@armory.com. KC6QKZ/AE http://www.armory.com./~spcecdt/